﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Control_Header : System.Web.UI.UserControl
{
    MatchIns.Model.TMemberLogin UserInfo;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["user"] != null)
        {
            UserInfo = Session["user"] as MatchIns.Model.TMemberLogin;
            login.InnerText = "会员中心";
            if (UserInfo.UserTypeId == (int)MatchIns.UserType.代理人)
                login.HRef = "/agent/default.aspx";
            else
                login.HRef = "/agent/default.aspx";
        }
    }
}